home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 1.iso
/
ARGONET
/
PD
/
PROGRAMMING
/
DESKLIBC
/
SOURCES.ZIP
/
DeskLib
/
!DLSources
/
Libraries
/
TextFile
/
c
/
SkipBlanks
< prev
Wrap
Text File
|
1995-07-08
|
980b
|
32 lines
/*
#### # # # #
# # # # # The FreeWare C library for
# # ## ### # # # # ### RISC OS machines
# # # # # # # # # # # ___________________________________
# # #### ### ## # # # #
# # # # # # # # # # Please refer to the accompanying
#### ### #### # # ##### # ### documentation for conditions of use
________________________________________________________________________
File: TextFile.SkipBlanks.c
Author: Copyright © 1992 Jason Williams
Version: 1.00 (07 Apr 1992)
Purpose: Generic textfile-handling routines
*/
#include <stdio.h>
#include "DeskLib:Core.h"
#include "DeskLib:TextFile.h"
extern void TextFile_SkipBlanks(FILE *infile)
{
char ch = 9;
while (!feof(infile) && (ch == 32 || ch == 9 || ch == '\n'))
ch = getc(infile);
ungetc(ch, infile);
}